

#ifndef __LD_S_


#ifndef _INLINE_
#define _INLINE_
#endif


typedef void*(*func)();




#define A_0
#define A_1		arg0
#define A_2		A_1,arg1
#define A_3		A_2,arg2
#define A_4		A_3,arg3
#define A_5		A_4,arg4
#define A_6		A_5,arg5

#define ARG_0 void

#define ARG_1 void*arg0

#define ARG_2 void*arg0,void*arg1

#define ARG_3 ARG_2,void*arg2

#define ARG_4 ARG_3,void*arg3

#define ARG_5 ARG_4,void*arg4

#define ARG_6 ARG_5,void*arg5


#ifndef LINK_FUNC_ARG
#define LINK_FUNC_ARG(xx,x) _INLINE_ void* sub_##xx(ARG_##x){ return ((func)(0x##xx + 1))(A_##x); }
#endif

#ifndef LINK_FUNC
#define LINK_FUNC(xx) _INLINE_  void* sub_##xx(){ \
			return  ((func)(0x##xx + 1))(); \
	}
#endif

#define SECTIONS_BEGIN
#define SECTIONS_END






#else

#define LINK_FUNC(xx) sub_##xx		=	0x##xx;
#define LINK_FUNC_ARG(xx,x) LINK_FUNC(xx)

#define SECTIONS_BEGIN SECTIONS{
#define SECTIONS_END	}
#endif

SECTIONS_BEGIN

/*
注释最好使用多行注释
 */

LINK_FUNC(80011D0)
LINK_FUNC(804F8F4)
LINK_FUNC(801569C)
LINK_FUNC(80D216C)
LINK_FUNC(80D18F0)
LINK_FUNC(80D2100)
LINK_FUNC(8019108)
LINK_FUNC_ARG(80168D0,1)
LINK_FUNC(80D19A0)
LINK_FUNC(80D17C8)
LINK_FUNC(80D1844)
LINK_FUNC(80D2AD8)
LINK_FUNC(8097CFC)
LINK_FUNC(8001EFC)
LINK_FUNC_ARG(80D2260,3)
LINK_FUNC_ARG(801911C,1)

LINK_FUNC(8017FB0)
LINK_FUNC(8003BE8)
LINK_FUNC(80DC0E4)
LINK_FUNC(804F9C0)
LINK_FUNC(8037B04)


/*
sub_80040B8所使用的函数
------------------------------------------------------------
 */




/*--------------------------------------------------------------
 * */
LINK_FUNC_ARG(800443C,2)
LINK_FUNC_ARG(80D65C4,3)


SECTIONS_END







